package org.jeecg.modules.hqbaoxiao.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.hqbaoxiao.entity.HqBaoxiao;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.model.TreeSelectModel;

import java.util.List;

/**
 * @Description: 报销
 * @Author: jeecg-boot
 * @Date:   2020-07-07
 * @Version: V1.0
 */
public interface IHqBaoxiaoService extends IService<HqBaoxiao> {

    public void startFlow(HqBaoxiao hqBaoxiao, LoginUser user);
    public void complateTask(LoginUser loginUser,String hezje, String taskId,String processInstanceId, Integer status, String memo);
    public void applyAgain(HqBaoxiao hqBaoxiao,LoginUser user);
    public IPage<HqBaoxiao> myApplyList(Page<HqBaoxiao> page, LoginUser user, HqBaoxiao hqBaoxiao);
    public IPage<HqBaoxiao> myTodoTasks(Page<HqBaoxiao> page, LoginUser user, HqBaoxiao hqBaoxiao);
    public IPage<HqBaoxiao> myDoneTasks(Page<HqBaoxiao> page, LoginUser user, HqBaoxiao hqBaoxiao);

    void delMain(String id);

    List<TreeSelectModel> kemulistByPid(String orgCode,String pcode);
}
